diff --git a/lib/.kiota.log b/lib/.kiota.log index c03d2e8b5b..ed5ca0fd46 100644 --- a/lib/.kiota.log +++ b/lib/.kiota.log @@ -1,701 +1,1398 @@ -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.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.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.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..f377f3f0aa 100644 --- a/lib/communications/calls/item/participants/invite/invite_request_builder.rb +++ b/lib/communications/calls/item/participants/invite/invite_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::InviteParticipantsOperation.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 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..59ede470c3 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 targetedManagedAppProtection 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 targetedManagedAppProtection 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 targetedManagedAppProtection 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..9b6e8bbeb4 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 targetedManagedAppProtection 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 targetedManagedAppProtection 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 targetedManagedAppProtection 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..3146f39e47 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,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::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,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 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. 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..22c771d385 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,10 +38,10 @@ 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. + ## List properties and relationships of the managedAppStatus objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of managed_app_status_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::ManagedAppStatusCollectionResponse.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::ManagedAppStatus.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the managedAppStatusRaw objects. + ## List properties and relationships of the managedAppStatus 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_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. + # List properties and relationships of the managedAppStatus objects. class ManagedAppStatusesRequestBuilderGetQueryParameters ## 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..db16fe776b 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,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,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,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,19 +92,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 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,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_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. 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..26d268d639 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 windowsAppX. ## @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 managedIOSLobApp 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 managedIOSLobApp 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 windowsAppX. ## @param request_configuration Configuration for the request such 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 managedIOSLobApp 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 managedIOSLobApp 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 managedIOSLobApp 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..f1b74fd8c3 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,10 +134,10 @@ 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. + ## List properties and relationships of the windowsMobileMSI objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of mobile_app_collection_response ## @@ -62,12 +146,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::MobileAppCollectionResponse.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Create a new microsoftStoreForBusinessApp object. + ## Create a new managedIOSStoreApp 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 @@ -78,30 +161,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::MobileApp.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the androidLobApp objects. + ## List properties and relationships of the windowsMobileMSI 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 microsoftStoreForBusinessApp object. + ## Create a new managedIOSStoreApp 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 @@ -109,20 +191,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_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. + # List properties and relationships of the windowsMobileMSI objects. class MobileAppsRequestBuilderGetQueryParameters ## 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..95b73a8ac5 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 windowsPhone81CompliancePolicy 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,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::DeviceCompliancePolicyCollectionResponse.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::DeviceCompliancePolicy.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the deviceCompliancePolicy objects. + ## List properties and relationships of the windowsPhone81CompliancePolicy 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 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 windowsPhone81CompliancePolicy 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..d5fb71cc8a 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 windows81CompliancePolicy. ## @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 windows10MobileCompliancePolicy 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 iosCompliancePolicy 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 windows81CompliancePolicy. ## @param request_configuration Configuration for the request such 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 windows10MobileCompliancePolicy 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 iosCompliancePolicy 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 windows10MobileCompliancePolicy 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..11054336b3 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 iosDeviceFeaturesConfiguration 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 iosGeneralDeviceConfiguration 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 iosDeviceFeaturesConfiguration 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 iosGeneralDeviceConfiguration 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 iosDeviceFeaturesConfiguration 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..9d6ac8746a 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 windowsDefenderAdvancedThreatProtectionConfiguration. ## @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 androidWorkProfileCustomConfiguration 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 windows10SecureAssessmentConfiguration 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 windowsDefenderAdvancedThreatProtectionConfiguration. ## @param request_configuration Configuration for the request such 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 androidWorkProfileCustomConfiguration 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 windows10SecureAssessmentConfiguration 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 androidWorkProfileCustomConfiguration 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..68ecfbb977 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,10 +38,10 @@ 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. + ## List properties and relationships of the deviceEnrollmentConfiguration objects. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_enrollment_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::DeviceEnrollmentConfigurationCollectionResponse.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::DeviceEnrollmentConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## List properties and relationships of the deviceEnrollmentPlatformRestrictionsConfiguration objects. + ## List properties and relationships of the deviceEnrollmentConfiguration 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 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. + # List properties and relationships of the deviceEnrollmentConfiguration objects. class DeviceEnrollmentConfigurationsRequestBuilderGetQueryParameters ## 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..6acaf025ac 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,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 deviceEnrollmentConfiguration object. + ## Read properties and relationships of the deviceEnrollmentLimitConfiguration object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of device_enrollment_configuration ## @@ -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::DeviceEnrollmentConfiguration.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Update the properties of a deviceEnrollmentPlatformRestrictionsConfiguration object. + ## Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration 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 @@ -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::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 ## - ## Read properties and relationships of the deviceEnrollmentConfiguration object. + ## Read properties and relationships of the deviceEnrollmentLimitConfiguration 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 deviceEnrollmentPlatformRestrictionsConfiguration object. + ## Update the properties of a deviceEnrollmentWindowsHelloForBusinessConfiguration 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 @@ -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 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. + # Read properties and relationships of the deviceEnrollmentLimitConfiguration object. class DeviceEnrollmentConfigurationItemRequestBuilderGetQueryParameters ## 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..30f295db38 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,10 +27,10 @@ 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. + ## Deletes a roleDefinition. ## @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 roleDefinition object. + ## Read properties and relationships of the deviceAndAppManagementRoleDefinition object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of role_definition ## @@ -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,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::RoleDefinition.create_from_discriminator_value(pn) }, error_mapping) end ## - ## Deletes a deviceAndAppManagementRoleDefinition. + ## Deletes a roleDefinition. ## @param request_configuration Configuration for the request such 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 roleDefinition object. + ## Read properties and relationships of the deviceAndAppManagementRoleDefinition 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 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,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 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. + # Read properties and relationships of the deviceAndAppManagementRoleDefinition object. class RoleDefinitionItemRequestBuilderGetQueryParameters ## 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..b836bdfd51 --- /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 + ## + ## Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + ## @param 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 + ## + ## Apply (set) a retention label on a driveItem (files and folders). Retention labels don't need to be published in a retention label policy to be applied using this method. When a retention label is applied to a folder, all the items in the folder are tagged with the same retention label. For information about conflict resolution for retention labels, see Will an existing label be overridden or removed. For information about retention labels from an administrator's perspective, see Use retention labels to manage the lifecycle of documents stored in SharePoint. + ## @param body 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..673a653083 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 @@ -34,7 +207,7 @@ def initialize(path_parameters, request_adapter) super(path_parameters, request_adapter, "{+baseurl}/drives/{drive%2Did}/items/{driveItem%2Did}/workbook/names/{workbookNamedItem%2Did}/range()") end ## - ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + ## Retrieve the properties and relationships of range object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_range ## @@ -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 ## - ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + ## 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 + ## + ## Retrieve the properties and relationships of range 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.add_request_options(request_configuration.options) end + request_info.url_template = @url_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..9d2ef45010 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 + ## Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. ## @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 + ## Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. ## @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..a47da7736d 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 @@ -38,7 +211,7 @@ 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()") end ## - ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + ## Retrieve the properties and relationships of range object. ## @param request_configuration Configuration for the request such as headers, query parameters, and middleware options. ## @return a Fiber of workbook_range ## @@ -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 ## - ## Returns the range object that is associated with the name. Throws an exception if the named item's type is not a range. + ## 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 + ## + ## Retrieve the properties and relationships of range 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.add_request_options(request_configuration.options) end + request_info.url_template = @url_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..a879eb6ab8 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 + ## Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. ## @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 + ## Create a new table. The range source address determines the worksheet under which the table will be added. If the table can't be added (for example, because the address is invalid, or the table would overlap with another table), an error is generated. ## @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 +